import dayjs from "dayjs"

export const getHour = () => {
    // dayjs().format("H")
    let hour = parseInt(dayjs().format("H"))
    if (hour < 9 && hour >= 0) {
        return "早上好~"
    }
    if (hour < 12 && hour >= 9) {
        return "上午好~"
    }
    if (hour < 18 && hour >= 12) {
        return "下午好~"
    }
    if (hour >= 18) {
        return "晚上好~"
    }
}
